package com.hange.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneRegisterDto {
    @NotNull(message = "手机号不能为空")
    private String mobile;

    @Size(min = 6,max = 12,message = "密码长度为6-12位")
    private String password;

    @NotNull(message = "参数不能为空")
    private Integer regChannel;

    @NotEmpty(message = "验证码不能为空")
    private String smsCode;
}
